package com.cheng.example.atguigu.view2;

/**
 *
 *
 * 085_ OOM之unable to create new native thread故障演示
 *
 */
public class Client85 {

    public static void main(String[] args) {
//        Thread thread = new Thread();
//        thread.start();
//        thread.start();


//       final int  y = 0;

        for (int i = 0; ; i++) {
            System.out.println(i);

            Thread thread = new Thread(()->{
                try {
                    Thread.sleep(Integer.MAX_VALUE);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            });



        }


    }
}
